package com.hospital.entity;

import lombok.*;

import java.util.List;

@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
/*
 * 用户表
 */
public class User {
    private Integer id;
    private String username;
    private String name;
    private String sex;
    private String phone;
    private String email;
    private String password;
    private String deleteState;
    //一个用户对应多个科室
    private List<ResponsibleDepartment> responsibleDepartment;
    //一个用户对应多个角色
    private List<Role> roles;
}
